<?php

/* 单一入口 */

define('DS', DIRECTORY_SEPARATOR);
define('PS', PATH_SEPARATOR);
define('ROOT_PATH', dirname(dirname(__FILE__)) . DS);
define('LIB_PATH', ROOT_PATH . 'library' . DS);
define('PROJECT_PATH', ROOT_PATH . 'application' . DS);

//框架目录
define('YA_PATH', LIB_PATH . 'Ya' . DS);

define('REQUEST_TIME', time());
define('MICROTIME', microtime(TRUE));

define('PATH_INFO', empty($_SERVER['PATH_INFO']) ? strtr($_SERVER['REQUEST_URI'], array(basename(__FILE__) => '')) : $_SERVER['PATH_INFO']);

require LIB_PATH . 'Ya.php';

$options = array(

);

Ya::createWebApplication($options)->run();